#ifndef WEBPAGE_H
#define WEBPAGE_H

#include "qwebpage.h"

class WebPage: public QWebPage {

	Q_OBJECT

public:

	explicit WebPage(QObject *parent = 0);
	WebPage *createWindow(WebWindowType type);
	void javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID);

public slots:

	bool shouldInterruptJavaScript();

signals:

	WebPage* createWindow();

};

#endif // WEBPAGE_H
